using System.Reflection;
using Microsoft.EntityFrameworkCore;
using Zhaoxi.MSACommerce.BrandService.Core.Entities;

namespace Zhaoxi.MSACommerce.BandService.Infrastructure.Data.Configuration;

public class BrandDbContext(DbContextOptions<BrandDbContext> options):DbContext(options)
{
    public DbSet<Brand> Brands { get; set; }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);
        modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());

    }
}